<!DOCTYPE html>
<html>
<head>
	<title>导航创建</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>
<body>
	<div class="container">
		<!-- 添加role是为了避免麻烦 -->
		<!-- 
			<ul class="nav nav-tabs nav-stacked垂直展示" role="tablist" >无特效 
		-->
		<ul class="nav nav-pills" role="tablist" >
			<li role="presentation" class="active"><a href="#">Home</a></li>
			<li role="presentation"><a href="#">Hello</a></li>
			<li role="presentation"><a href="#">World</a></li>
		</ul>
	</div>

	<!-- 两端对齐的标签页 -->
	<div class="container">
		<ul class="nav nav-pills nav-justified" role="tablist" >
			<li role="presentation" class="active"><a href="#">Home</a></li>
			<li role="presentation"><a href="#">Hello</a></li>
			<li role="presentation" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">World
				<span class="caret"></span>
			</a>
				<ul class="dropdown-menu" role="menu">
					<li role="presentation"><a href="#" role="menuitem" tabindex="-1">Hello1</a></li>
					<li role="presentation"><a href="#" role="menuitem" tabindex="-1">Hello2</a></li>
					<li role="presentation"><a href="#" role="menuitem" tabindex="-1">Hello3</a></li>
					<li role="presentation"><a href="#" role="menuitem" tabindex="-1">Hello4</a></li>
				</ul>
			</li>
			<!-- <li role="presentation" class="disabled"><a href="#">World</a></li> -->
		</ul>
	</div>	

<script type="text/javascript" src="js/jquery-3.0.0.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script>
	$('ul li').click(function(e){
		e.preventDefault();
		$(this).tab("show");
	})
</script>
</body>
</html>